<%--
  Created by IntelliJ IDEA.
  User: liuxianan
  Date: 2021/7/19
  Time: 10:23 上午
  To change this template use File | Settings | File Templates.
--%>
<%--
  Created by IntelliJ IDEA.
  User: liuxianan
  Date: 2021/7/19
  Time: 10:23 上午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>Login</title>
  <script type="text/javascript" src="${pageContext.request.contextPath}/js/jQuery.js"></script>
  <script type="text/javascript" src="${pageContext.request.contextPath}/js/md5.js"></script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <!-- Bootstrap core CSS -->
  <link href="${pageContext.request.contextPath}/asserts/css/bootstrap.min.css" rel="stylesheet">
  <!-- Custom styles for this template -->
  <link href="${pageContext.request.contextPath}/asserts/css/signin.css" rel="stylesheet">
  <script>
    function md5passwd(){
      let passwd = document.getElementById("password").value;
      document.getElementById("password").value = $.md5(passwd);
      return true;
    }
  </script>
  <style type="text/css">
    *{
      margin: 0px;
    }
    .input{
      width: 250px;
    }
    .btnbtn-lgbtn-primarybtn-block{
      width: 177px;
      padding-top: 2px;
      margin-top: 10px;
    }
    .form-signin{
      left: 400px;
      top: 200px;
      width: 400px;
      background: aliceblue;
    }
    .fromDiv{
      padding-left: 1000px;
      padding-top: 200px;
    }
    .header{
      height: 40px;
      background: cornflowerblue;
    }
    .body{
      background-image: url("${pageContext.request.contextPath}/js/bg.jpg");
      background-repeat: no-repeat;
      height: 1000px;
      background-size: 1920px 1000px;
    }
    .footer{
      height: 30px;
      background: cadetblue;
    }
    .text-p{
      padding-top: 1px;
      size: 10px;
      letter-spacing: 3px;
      text-align: center;
    }
  </style>
</head>
<body>

<div class="header">

</div>

<div class="body">
  <div class="fromDiv">
    <form action="${pageContext.request.contextPath}/user/userCheck" onsubmit="return md5passwd()" method="post" class="form-signin">
      <h1 class="h3 mb-3 font-weight-normal">教育综合信息系统学生登陆</h1>
      <div class="input">
        <label class="sr-only">Username</label>
        <input type="text" name="username" id="username" class="form-control" placeholder="Username" required="required">
        <label class="sr-only">Password</label>
        <input type="password" name="password" id = "password" class="form-control" placeholder="Password" required="required">
        <button class="btnbtn-lgbtn-primarybtn-block" type="submit">Sign in</button>
      </div>
    </form>
  </div>
</div>

<div class="footer">
  <p class="text-p">版权信息：&copy 2021 南桐宿舍</p>
</div>


</body>
</html>

